import javax.swing.RepaintManager;
import javax.swing.JComponent;

//over class to dont do anything avoiding the flickering

public class NullRepaintManager extends RepaintManager{
	
	
	public static void install()
	{
		RepaintManager repaintManager = new NullRepaintManager();
		repaintManager.setDoubleBufferingEnabled(false);
		RepaintManager.setCurrentManager(repaintManager);
	}
	
public void addInvalidComponent (JComponent c)
{
	
}

public void addDirtyRegion(JComponent c, int x, int y, int w, int h)
{
	
}

public void markCompletelyDirty (JComponent c)
{
	
}

public void  paintDirtyRegion()
{
	
}

}
